Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

558
Views
PdfMake | Error: ENOENT: no existe tal archivo o directorio, abra './build/vfs_fonts.js'

Estoy usando la biblioteca PDFMake e intento usar una fuente personalizada en su salida. Esta fuente está hecha para el idioma persa. Seguí los pasos descritos en la página web a continuación custom-fonts-client-side/vfs

Encontré el siguiente error al ejecutar el comando node build-vfs.js "./examples/fonts" :

 Internal/modules/cjs/loader.js:888 throw err; ^ Error: Cannot find module 'D:\ProgrammingWorld\Github_Library\Cyeng\NewProject\onGit\NewProject\build-vfs.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15) at Function.Module._load (internal/modules/cjs/loader.js:730:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Así que decidí cambiar el comando y escribirlo de la siguiente manera:

 node node_modules/pdfmake/build-vfs.js "node_modules\pdfmake\examples\fonts"

Pero desafortunadamente, recibí un nuevo error:

 Source path: node_modules\pdfmake\examples\fonts FILE: Shabnam-Bold.ttf FILE: Shabnam-Light.ttf FILE: Shabnam-Medium.ttf FILE: Shabnam-Thin.ttf FILE: Shabnam.ttf internal/fs/utils.js:312 throw err; ^ Error: ENOENT: no such file or directory, open './build/vfs_fonts.js' at Object.openSync (fs.js:498:3) at Object.writeFileSync (fs.js:1524:35) at Object.<anonymous> (D:\ProgrammingWorld\Github_Library\Cyeng\NewProject\onGit\NewProject\node_modules\pdfmake\build-vfs.js:41:4) at Module._compile (internal/modules/cjs/loader.js:1068:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) at Module.load (internal/modules/cjs/loader.js:933:32) at Function.Module._load (internal/modules/cjs/loader.js:774:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47 { errno: -4058, syscall: 'open', code: 'ENOENT', path: './build/vfs_fonts.js' }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Vaya al node_modules/pdfmake/ y ejecute node build-vfs.js "./examples/fonts"

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!